SOURCE = $(wildcard *.o)
ADDED = -ldl -luuid -std=c++11 -lpthread -lslog -g -llua
MAIN = main.out
$(MAIN):$(SOURCE)
	g++ -o $(MAIN) $(SOURCE) $(ADDED)
	@echo 程序合成成功！
run:
	./$(MAIN)
debug:
	@echo 准备调试
	valgrind --log-file=./valgrind_report.log --tool=memcheck --leak-check=full ./$(MAIN)
